package com.sogou.adm.bizdev.dataimport.vo;

import org.quartz.CronTrigger;
import org.quartz.Trigger;

public class DataJobTrigger {
	private String name;
	private String group;
	private String jobGroup;
	private String jobName;
	private String cronExpression;

	public DataJobTrigger() {

	}
	public DataJobTrigger(Trigger trigger) {
		if (trigger != null) {
			setName(trigger.getName());
			setGroup(trigger.getGroup());
			setJobName(trigger.getJobName());
			setJobGroup(trigger.getJobName());
			if (trigger instanceof CronTrigger) {
				setCronExpression(((CronTrigger) trigger).getCronExpression());
			}
		}
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	public String getJobGroup() {
		return jobGroup;
	}

	public void setJobGroup(String jobGroup) {
		this.jobGroup = jobGroup;
	}

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public String getCronExpression() {
		return cronExpression;
	}

	public void setCronExpression(String cronExpression) {
		this.cronExpression = cronExpression;
	}
}
